package org.lanqiao.tjut.bean;

public class Dog {
	private String dogName;
	private int dogAge;
	private String dogSex;

	public String getDogName() {
		return dogName;
	}

	public void setDogName(String dogName) {
		this.dogName = dogName;
	}

	public int getDogAge() {
		return dogAge;
	}

	public void setDogAge(int dogAge) {
		this.dogAge = dogAge;
	}

	public String getDogSex() {
		return dogSex;
	}

	public void setDogSex(String dogSex) {
		this.dogSex = dogSex;
	}

	public void doEating() {
		System.out.println("U are eating...");
	}

	public void doBark() {
		System.out.println("We are barking...");
	}

	public void doThrowException() {
		throw new IllegalArgumentException("Wolf is coming...");
	}

	@Override
	public String toString() {
		return "Dog [dogName=" + dogName + ", dogAge=" + dogAge + ", dogSex=" + dogSex + "]";
	}

}
